var websocket = require("websocket")

cc.Class({
    extends: cc.Component,

    properties: {
  
    },

    onLoad () {
        var buf = new ArrayBuffer(10);
        var dataView = new DataView(buf);
        dataView.setInt8(0,100);
        var value = dataView.getInt8(0);
        console.log(value);
    },

    start:function () {
        this.scheduleOnce(function(){
            var data = {
                uname: '小名',
                upwd:'123456'
            }
            websocket.send_cmd(1,1,data);
        }.bind(this),3)
    },
});
